﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="JqueryValidation.aspx.cs" Inherits="CSharpLearningWeb.Jquery.JqueryValidation" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="../Scripts/jquery-1.8.3.min.js"></script>
    <script src="../Scripts/jquery-ui-1.9.2.min.js"></script>
    <script src="../Scripts/jquery.validate.min.js"></script>
    <link href="../Content/themes/base/jquery-ui.css" rel="stylesheet" />

    <script type="text/javascript">
        $(document).ready(function () {
            //$("#divpop").dialog({ modal: true });
            //$('#divpop').dialog({
            //    modal: true, resizable: false, width: 'auto', autoOpen: true, open: function (type, data) {
            //        $(this).parent().appendTo("#form1");
            //    }
            //});
            //$("#form1").validate();
            var input = $("input:password");
            var password = $('#txtPasswordRegisto').val();
            $("#testepass").text(password);
        });
    </script>
</head>
<body>
    <%--    <form id="contact-form" class="form-horizontal">
        <fieldset>
            <legend>Sample Contact Form <small>(will not submit any information)</small></legend>
            <div class="control-group">
                <label class="control-label" for="name">Your Name</label>
                <div class="controls">
                    <input type="text" class="input-xlarge" name="name" id="name">
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="email">Email Address</label>
                <div class="controls">
                    <input type="text" class="input-xlarge" name="email" id="email">
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="subject">Subject</label>
                <div class="controls">
                    <input type="text" class="input-xlarge" name="subject" id="subject">
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="message">Your Message</label>
                <div class="controls">
                    <textarea class="input-xlarge" name="message" id="message" rows="3"></textarea>
                </div>
            </div>
            <div class="form-actions">
                <button type="submit" class="btn btn-primary btn-large">Submit</button>
                <button type="reset" class="btn">Cancel</button>
            </div>
        </fieldset>        ​   
    </form>
    <form id="form1" runat="server">
        <div>
            <div id="divpop">
                <label>ciao</label><input type="text" id="txttest" name="txttest" class="required" /><br />
                <input type="button" value="validate" onclick="alert($('#form1').valid()); return false;" />
            </div>
        </div>
    </form>--%>
    <form id="form3">
        <input type="password" name="password" id="txtPasswordRegisto" value="123" />
        <div id="testepass"></div>
    </form>

</body>
</html>
